class OsnNotifyAddMember: OsnNotifyContent {
    var groupId = ""
    var invitor = ""
    var invitees:[String] = []
    
    override init(){
        super.init()
        contentType = OsnMessageContentType.notify_add_member
    }
    override func toJson() ->[String:Any] {
        var json = super.toJson()
        json["type"] = "notify_add_member"
        json["groupId"] = groupId
        json["invitor"] = invitor
        json["invitees"] = invitees
        return json
    }
    static func fromJson(_ data:[String:Any])->OsnNotifyAddMember{
        let c = OsnNotifyAddMember()
        super.fromJson(c, data)
        c.groupId = data["groupId"] as? String ?? ""
        c.invitor = data["invitor"] as? String ?? ""
        c.invitees = data["invitees"] as? [String] ?? []
        return c
    }

}
